package com.ztf.shopping.dao;

import com.ztf.shopping.bean.Article;
import com.ztf.shopping.bean.Order;
import com.ztf.shopping.bean.User;

import java.util.List;

public interface UserDao {

    String findName(String name);

    User login(User user);

    boolean registerServlet(User regUser);

    List<Order> findShoppingCart(String name);

    void sureRegister(int i,String name);

    Article findArtilceCount(int parseInt);

    void changeCountById(String userName, String articleName, int count, String money);

    void delOrder(String name, String id);

    Order findShoppingCartByArticleId(String userName, int articleId);

    void addOrder(Order order);

    void payOrder(String name, List<Order> list);

    void changeUser(User loginUser);
}
